package com.ruoyi.web.cp.schuedule;

import com.ruoyi.web.cp.service.merge.NoMatchGameService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

@Slf4j
@Configuration
public class NoMatchGameTask {
    @Autowired
    private NoMatchGameService noMatchGameService;

    @Scheduled(fixedDelayString = "300000")
    public void execute() {
        noMatchGameService.noMatchGames("rmob-match", "ob-game", "ob-gamename");
        noMatchGameService.noMatchGames("rmfb-match", "fb-game", "fb-gamename");
    }
}
